/**
 * Created by shaotingzhou on 2017/5/9.
 */
// 统计一级颜色标识图

import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View
} from 'react-native';

export default class StatisicalColorMark extends Component {
    render() {
        return (
            <View style={{flexDirection:'row',alignItems:'center',marginBottom:10}}>
                <View style={{width:20,height:20,backgroundColor:this.props.color}}></View>
                <Text style={{marginLeft:2}}>{this.props.txt}</Text>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
    }
});

